<% layout("/common/layout.html",{"title":"工商签发确认列表"}){ %>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-8">
        <h2>工商签发确认列表</h2>
        <ol class="breadcrumb">
            <li><a href="${ctxPath}/admin/main">主页</a></li>
            <li class="active">工商签发确认列表</li>
        </ol>
    </div>
    <div class="col-sm-4">
        <div class="title-action"></div>
    </div>
</div>
<div class="wrapper wrapper-content">
    <div class="row">
        <form id="searchForm">
            <div class="ibox-content m-b-sm border-bottom">
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="control-label" for="searchValue">企业名称：</label>
                            <input type="text" class="form-control" id="searchValue" name="searchValue" placeholder="支持企业名称模糊查询">
                        </div>
                    </div>

                    <div class="col-sm-2">
                        <div class="form-group">
                            <label class="control-label" for="receiveStatus">领取状态：</label>
                            <select class="form-control" id="receiveStatus" name="receiveStatus">
                                <option value="">全部</option>
                                <option value="0">未领取</option>
                                <option value="1">已领取</option>
                            </select>
                        </div>
                    </div>

                    <div class="col-sm-2">
                        <div class="form-group">
                            <label class="control-label" for="issueStatus">签发状态：</label>
                            <select class="form-control" id="issueStatus" name="applyStatus">
                                <option value="">全部</option>
                                <option value="0">未签发</option>
                                <option value="1">已签发</option>
                            </select>
                        </div>
                    </div>

                    <div class="col-sm-2 pull-right">
                        <div class="form-group">
                            <label class="control-label" for="search">&nbsp;</label>
                            <div class="btn-block text-right">
                                <button type="button" id="search" class="btn btn-primary "><i class="fa fa-search"></i>&nbsp;搜 索&nbsp;</button>
                                <button type="button" id="reset" class="btn btn-danger"><i class="fa fa-undo"></i>&nbsp;重 置&nbsp;</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>

        <!-- 表格-->
        <div class=" animated fadeInDown">
            <div class="mail-box">
                <div class="ibox-content">
                    <table id="dataList"></table>
                </div>
            </div>
        </div>
        <!-- 表格-->
    </div>
</div>
<% } %>
<script type="text/javascript">
    //页面JS调用
    require(['merchant/issue'], function (issue) {
        issue.list();
    });
    //列表参数
    function operateFormatter(value, row, index) {
        var tempCode = "";
        <%  if(shiro.hasPermission("/merchantIssue/save/action")) { %>
            tempCode += '<button type="button" class="issue btn btn-white"><i class="fa fa-lock"></i>&nbsp;签发执照&nbsp;</button>';
            tempCode += '<button type="button" class="resetReceive btn btn-white"><i class="fa fa-retweet"></i>&nbsp;领取重置&nbsp;</button>';
//            tempCode += '<button type="button" class="sendSMS btn btn-white"><i class="fa fa-commenting-o"></i>&nbsp;通知短信&nbsp;</button>';
        <% } %>
        return '<div class="btn-group">' + tempCode + '</div>';
    }
</script>